﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="User_Detail.aspx.cs" Inherits="Admin_shop_User_Detail" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>会员信息</title>
    <link rel="shortcut icon" href="favicon.ico" />

    <link href="../css/bootstrap.min.css" rel="stylesheet" />
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet" />
    <link href="../css/animate.css" rel="stylesheet" />
    <link href="../css/style.css?v=4.1.0" rel="stylesheet" />
    <link href="../css/plugins/footable/footable.core.css" rel="stylesheet" />
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>



    <style>
        .grade td {
            display: inline-block;
        }

        .gradeX td img {
            width: 60px;
            height: 60px;
        }

        .grade {
            width: 50%;
            float: left;
            border: 0px solid inherit;
        }
    </style>
</head>

<body class="gray-bg">
    <form id="form1" runat="server" class="form-horizontal">
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            <div class="tabs-container" style="margin-top: 1em;">
                                <ul class="nav nav-tabs">
                                    <li class="active" id="tab1"><a data-toggle="tab" href="#tab11" aria-expanded="true">一级会员（<%=sum1%>人）</a> </li>
                                    <%--<li class="" id="tab2"><a data-toggle="tab" href="#tab22" aria-expanded="false">帮推会员（<%=sum2%>人）</a> </li>--%>
                                    <%--<li class="" id="tab3"><a data-toggle="tab" href="#tab33" aria-expanded="false">二级会员（<%=sum3%>人）</a> </li>--%>
                                </ul>
                                <div class="tab-content">
                                    <div id="tab11" class="tab-pane active">
                                        <div class="panel-body">
                                            <asp:Repeater ID="Repeater1" runat="server">
                                                <HeaderTemplate>
                                                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="20">
                                                        <thead>
                                                            <tr>
                                                                <th align="center">ID</th>
                                                                 <th align="center">openid</th>
                                                                <th align="center">GUID</th>
                                                                <th align="center">头像</th>
                                                                <th align="center">微信昵称</th>
                                                                <th align="center">系统昵称</th>
                                                                <th align="center">号码 </th>
                                                                <th align="center">星级</th>
                                                                <th align="center">直接推荐人</th>
                                                                <th align="center">下级人数数</th>
                                                                <th align="center">注册时间 </th>
                                                        
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <tr class="gradeX">
                                                           <td><%#Eval("UID")%></td>
                                                        <td><%#Eval("UOpenID")%></td>
                                                        <td><%#Eval("UGuid")%></td>
                                                        <td>
                                                            <img src="data:image/jpeg;base64,<%# Eval("Utouxiang")%>" onerror="this.src='<%# Eval("UHeadImg")%>'" width="50" height="50" /></td>
                                                    <td><a onclick="lookChild('<%#Eval("UOpenID")%>')"><%#Convert.ToString(Eval("UNickName")) %></a></td>


                                                      <td>  <%#Convert.ToString(Eval("UTrueName"))%></td>

                                         <td> <%#Convert.ToString(Eval("Utel")) %></td> 
                                                                         <td><%#_rky.getUstat(Eval("Ustate").ToString())%></td>
                                                        <td><a onclick="lookChild('<%#Eval("UOpenID")%>')"><%#_rky.getUnameByguid(Convert.ToString(Eval("UIndirectParentId")))%></a></td>



                                                        <td><a onclick="lookChild('<%#Eval("UOpenID")%>')"><%#_rky.getTJnumberBYguid(Convert.ToString(Eval("UOpenID")))%></a></td>
                               


                                                        
                                                        <td><%#string.Format("{0:g}", Eval("RegTime"))%></td>
                                                    </tr>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </tbody>
                                                   </table>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                        </div>
                                    </div>

                                <%--    <div id="tab22" class="tab-pane ">
                                        <div class="panel-body">

                                            <asp:Repeater ID="Repeater2" runat="server">
                                                <HeaderTemplate>
                                                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="20">
                                                        <thead>
                                                            <tr>
                                                                <th align="center">ID</th>
                                                                <th align="center">头像</th>
                                                                <th align="center">昵称</th>
                                                                <th align="center">号码 </th>
                                                                <th align="center">直接推荐人</th>
                                                                <th align="center">帮助推荐人</th>
                                                                <th align="center">一级人数</th>
                                                                <th align="center">帮推人数</th>
                                                                <th align="center">总会员人数</th>
                                                                <th align="center">注册时间 </th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <tr class="gradeX">
                                                        <td><%#Eval("UGuid")%></td>
                                                        <td>
                                                            <img src="data:image/jpeg;base64,<%# Eval("Utouxiang")%>" onerror="this.src='/4G/images/user.png'" width="50" height="50" /></td>
                                                        <td><%#(String.IsNullOrEmpty(Eval("UTrueName") as String))? Eval("UNickName"): Eval("UTrueName")%></td>
                                                        <td><%#(String.IsNullOrEmpty(Eval("Utel") as String))?"":Eval("Utel")%></td>
                                                        <td><a onclick="EditParent('<%#Eval("UID")%>','zj')"><%#methods.getParent(Eval("UGuid").ToString(),"zj")%></a></td>
                                                        <td><a onclick="EditParent('<%#Eval("UID")%>','bt')"><%#methods.getParent(Eval("UGuid").ToString(),"bt")%></a></td>
                                                        <td><a onclick="lookChild('<%#Eval("UGuid")%>')"><%#methods.getChildNumber(Eval("UGuid").ToString())[0]%></a></td>
                                                        <td><a onclick="lookChild('<%#Eval("UGuid")%>')"><%#methods.getChildNumber(Eval("UGuid").ToString())[1]%></a></td>
                                                        <td><a onclick="lookChild('<%#Eval("UGuid")%>')"><%#methods.getChildNumber(Eval("UGuid").ToString())[2]%></a></td>
                                                        <td><%#string.Format("{0:g}", Eval("RegTime"))%></td>
                                                    </tr>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </tbody>
                                </table>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                        </div>
                                    </div>--%>

                                    <%--  <div id="tab33" class="tab-pane ">
                                        <div class="panel-body">
                                            <asp:Repeater ID="Repeater3" runat="server">
                                                <HeaderTemplate>
                                                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="20">
                                                        <thead>
                                                            <tr>
                                                                <th align="center">ID</th>
                                                                <th align="center">头像</th>
                                                                <th align="center">上级推荐人</th>
                                                                <th align="center">一级会员人数</th>
                                                                <th align="center">二级会员人数</th>
                                                                <th align="center">三级会员人数</th>
                                                                <th align="center">总会员人数</th>
                                                                <th align="center">注册时间 </th>
                                                                <th align="center">注册号码 </th>
                                                                <th align="center">积分 </th>
                                                                <th align="center">商品兑换次数 </th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <tr class="gradeX">
                                                        <td><%#Eval("UGuid")%></td>
                                                        <td>
                                                            <img src="data:image/jpeg;base64,<%# Eval("Utouxiang")%>" onerror="this.src='/4G/images/user.png'" width="50" height="50" /></td>
                                                        <td><%#AdminBase.getParent(Eval("UGuid").ToString())%></a></td>
                                                        <td><%#AdminBase.getChild(Eval("UGuid").ToString())[0]%></a></td>
                                                        <td><%#AdminBase.getChild(Eval("UGuid").ToString())[1]%></a></td>
                                                        <td><%#AdminBase.getChild(Eval("UGuid").ToString())[2]%></a></td>
                                                        <td><%#hdutil.getAllChild(Eval("UGuid").ToString())%></td>
                                                        <td><%#string.Format("{0:g}", Eval("RegTime"))%></td>
                                                        <td><%#Eval("Utel")%></td>
                                                        <td><%#Eval("Ujifen")%></td>
                                                        <td><%#Eval("Uexchangegoods")%></td>
                                                    </tr>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </tbody>
                                </table>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                        </div>
                                    </div>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    </form>

        <script src="../js/jquery.min.js?v=2.1.4"></script>
            <script type="text/javascript" src="../js/layer/layer.js"></script>

        <script type="text/javascript">


        $(function () {
            $("#Add").click(function () {

                parent.layer.open({
                    type: 2,
                    title: '添加新内容',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['100%', '100%'],
                    content: 'Add.aspx',  //iframe的url
                    end: function () {

                        location.reload();

                    }
                });

            });

        });



        function lookYJ(ID) {
            layer.open({
                type: 2,
                title: '会员业绩',
                shadeClose: true,
                shade: 0.8,
                area: ['90%', '90%'],
                content: './User_YJ.aspx?Guid=' + ID,  //iframe的url
                end: function () {
                }
            });
        }
        

        function EditUser(ID, type) {
            parent.layer.open({
                type: 2,
                title: '修改内容',
                shadeClose: true,
                shade: 0.8,
                area: ['90%', '90%'],
                content: '/Admin/User/wxUserAdd.aspx?id=' + ID, //iframe的url
                end: function () {
                    location.reload();
                }
            });
        }

        function CZ(ID, type) {
            layer.open({
                type: 2,
                title: '充值',
                shadeClose: true,
                shade: 0.8,
                area: ['90%', '90%'],
                content: 'cz.aspx?id=' + ID, //iframe的url
                end: function () {

                }
            });
        }

        function EditParent(ID, type) {
            layer.open({
                type: 2,
                title: '上级会员信息',
                shadeClose: true,
                shade: 0.8,
                area: ['80%', '80%'],
                content: './Parent_Detail.aspx?id=' + ID,  //iframe的url
                end: function () {

                }
            });
        }


        function lookChild(ID) {
            layer.open({
                type: 2,
                title: '会员信息',
                shadeClose: true,
                shade: 0.8,
                area: ['90%', '90%'],
                content: './User_Detail.aspx?Guid=' + ID,  //iframe的url
                end: function () {
                }
            });

            $('.btn-danger').click(function () {
                return confirm("删除后不可恢复，确定要删除吗？");
            });
        }
        </script>

</body>
</html>
